﻿using UnityEngine.Rendering.Universal;

namespace Learning
{
    public class Volume_ColorIntensityRenderPassFeature : ScriptableRendererFeature
    {
        public Volume_ColorIntensitySetting setting = new Volume_ColorIntensitySetting();

        private Volume_ColorIntensityRenderPass _pass;

        public override void Create()
        {
            _pass = new Volume_ColorIntensityRenderPass();
            _pass.renderPassEvent = setting.renderPassEvent;
            _pass.setting = setting;
        }

        public override void AddRenderPasses(ScriptableRenderer renderer, ref RenderingData renderingData)
        {
            renderer.EnqueuePass(_pass);
        }
    }
}
